﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>@ViewBag.Title</title>
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
</head>
<body>
    <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#">Aplicação Segura</a>
            </div>
            <div class="navbar-collapse collapse navbar-responsive-collapse">
                <ul class="nav navbar-nav">
                    <li><a href="~/">Home</a></li>
                    <li><a href="~/Home/PesquisarContato">Pesquisar</a></li>
                </ul>
                <ul class="nav navbar-nav navbar-right">
                    @if (Session.Count > 0)
                    {
                        <li><a href="~/Home/Logout" title="Clique para sair">Autenticado como @AppSeguro.Models.RepositorioCriptografia.Descriptografar(Session["Nome"].ToString())</a></li>
                        <li></li>
                    }
                    else
                    {
                        <li><a href="#" title="Clique para efetuar o login">Login</a></li>
                    }
                </ul>
            </div>
            <!-- /.nav-collapse -->
        </div>
        <!-- /.container -->
    </div>
    <!-- /.navbar -->
    <div class="container">
        <br />
        <br />
        <br />
        @RenderBody()
    </div>
    @Scripts.Render("~/bundles/jquery")
    @RenderSection("scripts", required: false)
</body>
</html>
